package org.ielts.domain.log;

import java.util.Date;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

import org.ielts.domain.base.SignCourse;
import org.ielts.domain.security.User;

@Entity
@DiscriminatorValue("ExtendSignCourse")
public class ExtendSignCourseLog extends SchoolLog {

	public ExtendSignCourseLog() {
		setLogType("ExtendSignCourse");
	}

	@Override
	public String getLogType() {
		return "ExtendSignCourse";
	}

	private boolean checked;

	@ManyToOne(fetch = FetchType.EAGER)
	private User checker;

	@ManyToOne(fetch = FetchType.EAGER)
	SignCourse signCourse;

	@ManyToOne(fetch = FetchType.EAGER)
	private User consultant;

	private int extendTimes;

	private Date extendDate;

	String oldContract;

	String newContract;

	private String oldCardId;

	private String newCardId;

	public SignCourse getSignCourse() {
		return signCourse;
	}

	public void setSignCourse(SignCourse signCourse) {
		this.signCourse = signCourse;
	}

	public String getOldContract() {
		return oldContract;
	}

	public void setOldContract(String oldContract) {
		this.oldContract = oldContract;
	}

	public String getNewContract() {
		return newContract;
	}

	public void setNewContract(String newContract) {
		this.newContract = newContract;
	}

	public String getOldCardId() {
		return oldCardId;
	}

	public void setOldCardId(String oldCardId) {
		this.oldCardId = oldCardId;
	}

	public String getNewCardId() {
		return newCardId;
	}

	public void setNewCardId(String newCardId) {
		this.newCardId = newCardId;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public User getChecker() {
		return checker;
	}

	public void setChecker(User checker) {
		this.checker = checker;
	}

	public Date getExtendDate() {
		return extendDate;
	}

	public void setExtendDate(Date extendDate) {
		this.extendDate = extendDate;
	}

	public int getExtendTimes() {
		return extendTimes;
	}

	public void setExtendTimes(int extendTimes) {
		this.extendTimes = extendTimes;
	}

	public User getConsultant() {
		return consultant;
	}

	public void setConsultant(User consultant) {
		this.consultant = consultant;
	}
}
